package com.huaao.micropolice.core.security;

/**
 * 证书加密
 * 
 * @author qiyang
 * 
 */
public interface CredentialsDigest {
	
	public String digest(String plainCredentials, byte[] salt);
	
	public boolean matches(String credentials, String plainCredentials, byte[] salt);
	
}
